(function(root,factory){
	if (typeof exports === 'object') {
        // Node. 
        module.exports = factory.call(root);
    } else if (typeof define === 'function' && define.amd) {
        // AMD. Register as an anonymous module.
        define(function(){ return factory.call(root) });
    } else {
        // Browser globals (root is window)
        window.sqlMethod = factory.call(root);
    }
}(this,function(){

	var result = function(str,data){
		var str1 = str.substring(2,str.length-1),sqlitem;
		if(data instanceof Array){
			str1 = parseInt(str1);
		}
		sqlitem = data[str1] == null ? str : data[str1];
        result.sqlData.push(sqlitem);
        return " ? ";
	};

    result.sqlData=[];
    return result;
}));